﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MongoData
{
    public class User
    {
        [BsonId]
        public string _id { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }
        public string Address { get; set; }
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 1学生
        /// 2上班族
        /// 3打工者
        /// </summary>
        public int UserType { get; set; }


    }
}
